package indi.zhifa.engine.core.excel.handler;

import indi.zhifa.engine.core.excel.entity.BaseExcelSheetRowData;
import org.apache.poi.ss.usermodel.Cell;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;


public interface IExcelCellHandler {
    /**
     * 处理单元格
     * @param pCell
     * @return
     */
    Object handle(Cell pCell, Class pCls);

    /**
     * 填写单元格
     *
     * @param pCell
     * @param pField
     */
    void fill(Cell pCell, BaseExcelSheetRowData pRowData, Field pField) throws IllegalAccessException, InvocationTargetException;
}
